import request from '@/utils/request'
//添加反馈
export function addFeedback(feedback) {
    return request({
        url: '/feedback',
        method: 'post',
        data: feedback
    })
}
//获取反馈列表
export function getFeedbackList(type,pageNum, pageSize) {
    return request({
        url: '/feedback/page',
        method: 'get',
        params: {
            type: type,
            pageNum: pageNum,
            pageSize: pageSize
        }
    })
}
//根据id删除反馈
export function deleteFeedback(id) {
    return request({
        url: '/feedback/' + id,
        method: 'delete'
    })
}
